<!DOCTYPE html>
<!--suppress SpellCheckingInspection, HtmlFormInputWithoutLabel -->
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>药品仓库</title>
    <link rel="stylesheet" href="../static/css/mdui.min.css" th:href="@{/css/mdui.min.css}">
</head>
<body class="mdui-appbar-with-toolbar mdui-drawer-body-left mdui-theme-primary-teal mdui-theme-accent-pink">
<div th:replace="_widgets::header"></div>
<div th:replace="_widgets::drawer"></div>
<div class="mdui-container mdui-p-t-2 mdui-p-b-2">
    <form method="post" action="/drugDepot" th:object="${drugDepot}">
        <input type="hidden" name="id" th:value="*{id}">
        <input type="hidden" name="_method" value="PUT" th:if="*{id!=null}">
        <div class="mdui-row mdui-textfield">
            <label class="mdui-textfield-label">药品仓库</label>
            <input id="inputName" name="name" class="mdui-textfield-input" type="text" maxlength="64" required th:value="*{name}"/>
            <div class="mdui-textfield-error">请输入药品仓库</div>
        </div>

        <div class="mdui-row mdui-textfield">
            <label class="mdui-textfield-label">详细信息</label>
            <textarea name="detail" class="mdui-textfield-input" maxlength="255" th:text="*{detail}"></textarea>
        </div>

        <div class="mdui-row">
            <button class="mdui-btn mdui-color-theme-accent mdui-ripple mdui-btn-raised mdui-center" type="submit">
                <i class="mdui-icon mdui-icon-left material-icons">&#xe161;</i>
                保存
            </button>
        </div>
    </form>
</div>
<script src="../static/js/mdui.min.js" th:src="@{/js/mdui.min.js}"></script>
</body>
<script>
    var $$ = mdui.JQ;
    var listItem = $$('#drugDepots');
    listItem.addClass('mdui-list-item-active');
    listItem.parent().parent().addClass('mdui-collapse-item-open');
</script>
</html>